﻿<UserControl x:Class="Mal.Balades.Admin.Views.VisitViews.Edit.MapTab"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    xmlns:bingmap="clr-namespace:Microsoft.Maps.MapControl;assembly=Microsoft.Maps.MapControl"
    d:DesignHeight="300" d:DesignWidth="400" xmlns:my="clr-namespace:Microsoft.Maps.MapControl;assembly=Microsoft.Maps.MapControl.Common">

    <Grid x:Name="LayoutRoot" Background="White">

        <StackPanel Orientation="Horizontal" VerticalAlignment="Top">
            <TextBlock Text="Latitude :" />
            <TextBox Text="{Binding SourceVisit.Latitude}" Width="80"/>

            <TextBlock Text="Longitude :" />
            <TextBox Text="{Binding SourceVisit.Longitude}" Width="80" />
            <CheckBox IsChecked="{Binding SourceVisit.QualityGps,Mode=TwoWay}" />
        </StackPanel>

        <Grid Margin="0,50,0,0">
            <bingmap:Map  x:Name="map" ZoomLevel="20"
                      
                      CredentialsProvider="AiO6hCub9U6JNUh42G30uZxNqxCefb5fCMcc0P0PcEAe5ZAB1Z3jUhvmlAZGD2vj" Culture="fr-FR" IsTabStop="False">
                <bingmap:Map.Mode>
                    <bingmap:AerialMode AnimationLevel="Full" Culture="en-US" RestrictMaxZoomLevel="True" Scale="68100.3488973112" UpSampleLevelDelta="5" ViewportSize="800,600" ZoomLevel="1">
                        <bingmap:AerialMode.Center>
                            <my:Location Altitude="0" AltitudeReference="Ground" Latitude="-29.535229562948459" Longitude="101.25" />
                        </bingmap:AerialMode.Center>
                    </bingmap:AerialMode>
                </bingmap:Map.Mode>
            </bingmap:Map>
            <Border CornerRadius="0,0,0,5"  Padding="2"
                VerticalAlignment="top" HorizontalAlignment="Right"
                Height="22">
                <Border.Background >
                    <SolidColorBrush Color="Black" Opacity="0.6" />
                </Border.Background>
                <StackPanel Orientation="Horizontal">
                    <TextBlock x:Name="gps" Text="45.22222, 5.0000" Foreground="White" />
                </StackPanel>
            </Border>
        </Grid>
        
    </Grid>
</UserControl>
